package com.engine.annual.service.impl;

import com.engine.annual.cmd.AnnualAddAndUpdCmd;
import com.engine.annual.cmd.AnnualDelCmd;
import com.engine.annual.cmd.AnnualGetCmd;
import com.engine.annual.service.AnnualService;
import com.engine.core.impl.Service;

import java.util.Map;

public class AnnualServiceImpl extends Service implements AnnualService {
    @Override
    public Map<String, Object> addAnnualService(Map<String, Object> params) {
        return commandExecutor.execute(new AnnualAddAndUpdCmd(user, params));
    }

    @Override
    public Map<String, Object> delAnnualService(Map<String, Object> params) {
        return commandExecutor.execute(new AnnualDelCmd(user, params));
    }

    @Override
    public Map<String, Object> updAnnualService(Map<String, Object> params) {
        return commandExecutor.execute(new AnnualAddAndUpdCmd(user, params));
    }

    @Override
    public Map<String, Object> getAnnualService(Map<String, Object> params) {
        return commandExecutor.execute(new AnnualGetCmd(user, params));
    }
}
